package com.lzw.property;

import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.List;

/**
 * @author LZW
 */
@ConfigurationProperties(prefix = "lzwserver")
public class LzwProperties {
    //注册中心url
    @SuppressWarnings("AlibabaLowerCamelCaseVariableNaming")
    private List<String> serverIpPort;
    //失效剔除定时(s)
    private int clearInterval = 60;
    //失效剔除定时(s)
    private int fetchInterval = 0;
    //失效剔除定时(s)
    private int pingInterval = 60;
    //默认失效时长
    private int invalidateTime = 90;
    //服务名
    private String appName = "lzw_register_center";

    public int getPingInterval() {
        return pingInterval;
    }

    public void setPingInterval(int pingInterval) {
        this.pingInterval = pingInterval;
    }

    public int getFetchInterval() {
        return fetchInterval;
    }

    public void setFetchInterval(int fetchInterval) {
        this.fetchInterval = fetchInterval;
    }

    public String getAppName() {
        return appName;
    }

    public void setAppName(String appName) {
        this.appName = appName;
    }

    @SuppressWarnings("AlibabaLowerCamelCaseVariableNaming")
    public List<String> getServerIpPort() {
        return serverIpPort;
    }

    @SuppressWarnings("AlibabaLowerCamelCaseVariableNaming")
    public void setServerIpPort(List<String> serverIpPort) {
        this.serverIpPort = serverIpPort;
    }

    public int getInvalidateTime() {
        return invalidateTime;
    }

    public void setInvalidateTime(int invalidateTime) {
        this.invalidateTime = invalidateTime;
    }

    public int getClearInterval() {
        return clearInterval;
    }

    public void setClearInterval(int clearInterval) {
        this.clearInterval = clearInterval;
    }
}
